:root{
    --smt-color:#0ed6b2;
    --smt-success:#42CA6F;
    --smt-warning:#FF7428;
    --snt-error:#E84444;
}
.smartIcon{
    display: inline-block;
    position: fixed;
    left: auto;
    top: auto;
    right: 25px;
    bottom: 25px;
    z-index: 99999;
    width: 80px;
    height: 80px;
    padding: 10px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--smt-color);
    box-shadow: 0 0 15px 8px rgba(0,0,0,0.1);
}
.smartIcon.leftIcon{
    left:25px;
    right: auto;
}
.smartIcon .icon{
    width: 100%;
    height: 100%;
    margin: 0;
}
.smartIcon:hover{
    background-color: var(--smt-color);
    color: #fff;
}
.smtIconPrompt{
    display: inline-block;
    position: fixed;
    left: auto;
    top: auto;
    right: 130px;
    bottom: 25px;
    z-index: 99999;
    max-width: 300px;
    transform: translateY(calc((100% - 80px) / 2));
    background: #fff;
    color: #333;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0 0 15px 8px rgba(0, 0, 0, 0.1);
}
.smtIconPrompt::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}
.smtIconPrompt.leftPrompt{
    left: 130px;
    right:auto;
}
.smtIconPrompt.leftPrompt::after {
    left: auto;
    right: 100%;
    border-color: transparent #fff transparent transparent ;
}

.smartService{
    position: fixed;
    left: auto;
    right: 140px;
    bottom: -100%;
    z-index: 999999;
    width: 360px;
    overflow: hidden;
    background: var(--smt-color);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 0 8px 4px rgba(0,0,0,0.1);
    transition: bottom 0.2s;
}
.smartService.near{
    left: auto;
    right: 40px;
}
.smartService.leftWindow{
    left:140px;
    right: auto;
}
.smartService.leftWindow.near{
    left: 40px;
    right: auto;
}
.smartService.show{
    bottom:0;
}
.smartService .icon{
    width: 100%;
    height: 100%;
    margin: 0;
}
.sm_title{
    padding-top: 15px;
    position: relative;
    overflow: hidden;
}
.sm_close{
    position: absolute;
    right: 15px;
    top: 15px;
    width: 14px;
    height: 14px;
    color: #fff;
    z-index: 99;
}

.sm_mark{
    width: 360px;
    height: 360px;
    position: absolute;
    left: -100px;
    top: -140px;
    opacity: 0.2;
    color: #fff;
}
.sm_admin{
    text-align: center;
}
.sm_admin img{
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}
.sm_admin p{
    padding: 10px;
    color: #fff;
    line-height: 20px;
    height: 40px;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 18px;
    font-weight: bold;
}
.sm_dialog{
    background: #f1f1f6;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    position: relative;
}
.sm_dialog .errorCon{
    width: 100%;
    position: absolute;
    left: 0;
    top: 20%;
    z-index: 999;
    display: flex;
    justify-content: center;
}
.sm_dialog .errorToast{
    max-width: 80%;
    width: fit-content;
    padding: 5px 12px;
    line-height: 26px;
    border:1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 12px;
    word-break: break-word;
}
.sm_dialog .errorToast .icon{
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: -3px;
}
.sm_dialog .errorToast.success{
    border-color: var(--smt-success);
    background: #F2FBF5;
}
.sm_dialog .errorToast.success .icon{
    color: var(--smt-success);
}
.sm_dialog .errorToast.error{
    border-color: var(--snt-error);
    background: #FBF2F2;
}
.sm_dialog .errorToast.error .icon{
    color: var(--snt-error);
}
.sm_dialog .errorToast.warning{
    border-color: var(--smt-warning);
    background: #FFEEE5;
}
.sm_dialog .errorToast.warning .icon{
    color: var(--smt-warning);
}
.sm_output{
    padding: 30px;
    border-radius: 30px;
    background: #fff;
    height: 354px;
    overflow: auto;
    max-height: calc(100vh - 295px);
    scrollbar-width: none;
    font-size: 12px;
    overscroll-behavior: contain; 
}
.sm_output .prompt{
    text-align: center;
    color: #aaa;
    margin:20px 0;
    width: 100%;
    float: left;
}

.sm_msg{
    width: 100%;
    overflow: hidden;
}
.sm_msg+.sm_msg{
    margin-top: 20px;
}
.sm_msg .msgtitle{
    color: #999;
    margin-bottom: 5px;
}
.sm_msg .msgtitle .name{
    margin-right: 5px;
}
.sm_msg .msgcon{
    max-width: calc(100% - 10px);
    background: #F5F5F7;
    padding: 16px 12px;
    color: #333;
    border-radius: 0 20px 20px 20px;
    overflow: hidden;
}
.sm_msg .msgcon + .msgcon,
.sm_msg .msgcon + .cardInfo{
    margin-top: 10px;
}
.sm_msg .msgcon .cItem{
    padding: 0 4px;
}
.sm_msg .msgcon .cItem + .cItem{
    margin-top: 10px;
}
.sm_msg .msgcon .cItem a{
    color: #3989FF;
}

/*图片*/
.sm_msg .msgcon img{
    max-width: 100%;
    border-radius: 6px;
}

/*按钮*/
.sm_msg .msgcon .msgbtn{
    padding: 0;
}
.sm_msg .cItem.msgbtn a{
    display: inline-block;
    padding: 0 15px;
    line-height: 24px;
    color: var(--smt-color);
    background-color: #fff;
    border:1px solid var(--smt-color);
    border-radius: 12px;
    margin:0 4px;
    margin-bottom: 8px;
    font-size: 12px;
}
.sm_msg .cItem.msgbtn a:hover{
    color: #fff;
    background-color: var(--smt-color);
}

/*问题引导*/
.sm_msg .msgcon .msgquestion{
    padding: 0;
}
.sm_msg .msgquestion .quea{
    line-height: 20px;
    padding: 14px 4px;
    border-bottom:1px solid #DCDEE0;
    font-size: 12px;
    font-weight: 500;
    text-align: justify;
}
.sm_msg .msgquestion .quea:first-child{
    padding-top: 0;
}
.sm_msg .msgquestion .quea:last-child{
    border-bottom:none;
    padding-bottom: 0;
}
.sm_msg .cItem.msgquestion .quea a{
    color: #333;
}
.sm_msg .cItem.msgquestion .quea a:hover{
    color: #3989FF;
}

/*知识*/
.sm_msg .msgcon.w100{
    width: calc(100% - 10px);
}
.sm_msg .msgknowledge{
    width: calc(100% - 10px);
}
.sm_msg .msgknowledge .knoa{
    display: none;
    line-height: 20px;
    padding: 14px 4px;
    border-bottom:1px solid #DCDEE0;
    font-size: 12px;
    font-weight: 500;
    text-align: justify;
}
.sm_msg .msgknowledge .knoa:nth-child(3n),
.sm_msg .msgknowledge .knoa:last-child{
    padding-bottom: 0;
    border-bottom: none;
}
.sm_msg .cItem.msgknowledge .knoa a{
    color: #333;
}
.sm_msg .cItem.msgknowledge .knoa a:hover{
    color: #3989FF;
}
.sm_msg .msgknowledge .knoa[group='0']{
    display: block;
}
.sm_msg .msgknowledge .ktitle{
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sm_msg .reply{
    float: left;
    width: calc(100% - 10px);
    font-size: 12px;
    text-align: right;
    padding-top: 12px;
}
.sm_msg .reply .replyBtn{
    display: inline-block;
    line-height: 22px;
    background-color: #fff;
    border: 1px solid #DCDFE6;
    border-radius: 12px;
    color: #606266;
    padding: 0 16px;
}
.sm_msg .ktitle a .icon,
.sm_msg .reply .replyBtn .icon{
    width: 12px;
    height: 12px;
    margin-right: 4px;
    margin-top: -2px;
}
.sm_msg .reply .replyBtn.disabled{
    opacity: 0.5;
    cursor: not-allowed;
}
.sm_msg .reply .replyBtn.disabled:hover{
    background-color: #fff;
    border: 1px solid #DCDFE6;
    color: #606266;
}
.sm_msg .reply .replyBtn:hover,
.sm_msg .reply .replyBtn.clicked,
.sm_msg .reply .replyBtn.clicked:hover{
    color: #fff;
    background: var(--smt-color);
    border-color: var(--smt-color);
}

.sm_msg .reply .replyN{
    margin-left: 10px;
}
.sm_msg .reply .replyN .icon{
    transform: scaleY(-1);
}
.sm_msg .msgknowledge .markCon{
    padding: 0 4px;
}
.sm_msg .msgknowledge .source{
    padding: 16px 4px 0;
    margin-top: 16px;
    border-top: 1px solid #DCDEE0;
}
.sm_msg .msgknowledge .sourceItem{
    list-style: decimal;
    line-height: 20px;
}
.sm_msg .msgknowledge .sourceItem a{
    color: #3989FF;
}
.sm_msg .msgknowledge .sourceItem a:hover{
    text-decoration: underline;
}
/*名片*/
.sm_msg .cardInfo{
    float: left;
    border-radius: 16px;
    background-image: linear-gradient(180deg, #FAECD6 0%, #FDFBF7 100%);
    width: calc(100% - 10px);
    cursor: pointer;
}
.sm_msg .cardmark{
    height: 24px;
    line-height: 24px;
    position: relative;
}
.sm_msg .cardmark span{
    display: inline-block;
    background-image: linear-gradient(90deg, #626265 0%, #17171D 100%);
    padding: 0 12px 0 34px;
    color: #FAEEDA;
    overflow: hidden;
    border-radius: 18px 0 18px 0;
    font-size: 12px;
    font-weight: bold;
}
.sm_msg .cardmark img{
    position: absolute;
    left: 12px;
    top: 4px;
    z-index: 9;
}
.sm_msg .cinfo{
    display: flex;
    padding: 16px;
}
.sm_msg .cardImg{
    flex: 0 0 60px;
    height: 60px;
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
}
.sm_msg .cardImg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sm_msg .cardName{
    padding: 5px 0;
}
.sm_msg .cardName .name{
    color: #1E1F24;
    font-size: 16px;
    font-weight: bold;
    line-height: 25px;
}
.sm_msg .cardName .label{
    color: #D2984B;
    font-size: 12px;
    line-height: 25px;
}


/*表单*/
.sm_msg .msgform{
    width: calc(100% - 10px);
}
.sm_msg .msgform .formIt{
    position: relative;
}
.sm_msg .msgform .formIt + .formIt{
    margin-top: 16px;
}
.sm_msg .msgform .formIt label{
    color: #333;
    font-size: 12px;
    font-weight: bold;
}
.sm_msg .msgform .formIt input::placeholder {
    color: #A8ABB2;
}
.sm_msg .msgform .formIt label span{
    color: #FF4A4A;
}
.sm_msg .msgform .formIt .p_inp{
    line-height: 24px;
    padding: 0 12px;
    border:1px solid #fff;
    background-color: #fff;
    width: 100%;
    border-radius: 4px;
    font-size: 12px;
}
.sm_msg .msgform .formIt a{
    display: block;
    line-height: 32px;
    text-align: center;
    color: #fff;
    background: var(--smt-color);
    border-radius: 16px;
}
.sm_msg .msgform .formIt .errorMsg{
    position: absolute;
    left: 0;
    top: 100%;
    line-height: 20px;
    width: 100%;
    color: #FF4A4A;
    font-size: 12px;
    display: none;
}
.sm_msg .msgform .formIt.invalid input{
    border-color:#FF4A4A;
}
.sm_msg .msgform .formIt.invalid .errorMsg{
    display: block;
}


.sm_msg.ad .msgcon{
    float: left;
}
.sm_msg.cus{
    float: right;
    text-align: right;
}
.sm_msg.ad{
    float: left;
    text-align: left;
}
.sm_msg.cus .msgcon{
    float: right;
    background: var(--smt-color);
    color: #fff;
    border-radius: 20px 0 20px 20px;
    text-align: left;
}





.sm_input{
    padding: 10px 30px;
    position: relative;
}

.sm_send{
    text-align: right;
    color: var(--smt-color);
}
.sm_sendBtn{
    display: inline-block;
    width: 50px;
    height: 50px;
}
.sm_sendBtn.disabled{
    opacity: 0.4;
    cursor: not-allowed;
}
.sm_send .erroMsg{
    color: #666;
    width: fit-content;
    max-width: calc(100% - 40px);
    position: absolute;
    right: 20px;
    bottom: calc(100% + 10px);
    background-color: #fff;
    border-radius: 3px;
    padding: 10px 20px;
    border: 1px solid #eee;
    box-shadow:  0 0 3px 3px #eee;
    display: none;
}
.sm_send .erroMsg::before{
    content: " ";
    width: 0;
    height: 0;
    position: absolute;
    right: 20px;
    bottom: -10px;
    z-index: 2;
    border-top: 8px solid #fff;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 5px solid transparent;
}
.sm_send .erroMsg::after{
    content: " ";
    width: 0;
    height: 0;
    position: absolute;
    right: 20px;
    bottom: -11px;
    border-top: 7px solid #ccc;
    border-left: 8px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 4px solid transparent;
}


.smallWindow .sm_output{
    height: 200px;
}
.smallWindow .serViceEditor{
    position: absolute;
    left: 20px;
    width: calc(100% - 100px);
    top: 10px;
    margin-bottom: 0;
    z-index: 8;
}
.smallWindow  .cEditor-content .cEditor-area{
    height: 50px;
    line-height: 50px;
    background: none;
}
.smallWindow .sm_editor{
    float: left;
    width: calc(100% - 50px);
}
.smallWindow .sm_send{
    float: right;
}
.smallWindow .sm_sendBtn{
    width:30px;
    height: 30px;
    margin-top: 10px;
}

@media screen and (max-width:768px) {
    .smartService{
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    .smtIconPrompt{
        right: 25px;
        bottom: 130px;
        max-width: calc(100vw - 50px);
        display: none;
    }
    .smtIconPrompt::after {
        top: 100%;
        transform: translateY(0);
        left: auto;
        right: 30px;
        border-color: #fff transparent transparent transparent;
    }
    .smtIconPrompt.leftPrompt{
        left: 25px;
        right:auto;
    }
    .smtIconPrompt.leftPrompt::after {
        left: 30px;
        right: auto;
    }
}


.smsForm{
    background-image: linear-gradient(179deg, #BCE6F9 0%, #E3EEF7 12%, #FFFFFF 40%);
    overflow: hidden;
}
.smsForm .sm_close{
    color: #939BA5;
}
.smsForm .sm_close:hover{
    color: #333333;
}
.smsForm .sm_title{
    min-height: 140px;
    display: flex;
    align-items: center;
    padding: 15px 0;
}
.smsForm .sm_title img{
    position: absolute;
    right: -8px;
    bottom: -14px;
    z-index: 8;
}
.smsForm .sm_formTitle{
    padding-left: 20px;
    padding-right: 140px;
    font-size: 21px;
    color: #555;
    line-height: 26px;
    word-break: break-word;
    font-weight: bold;
    max-height: 78px;
    overflow: hidden;
}
.smsForm .msgform{
    background: #fff;
    padding:20px 20px 60px;
    border-radius: 20px 20px 0 0;
    max-height: 50vh;
    overflow-y: auto;
}
.smsForm .formIt{
    margin-bottom: 20px;
    position: relative;
}
.smsForm .formIt input::placeholder {
    color: #A8ABB2;
}
.smsForm .formIt .formItLabel{
    font-weight: bold;
}
.smsForm .formIt[required] .formItLabel::after{
    content: "*";
    color: #FF4A4A;
    font-size: 20px;
    vertical-align: middle;
    margin-left: 5px;
}
.smsForm .formIt .p_inp{
    line-height: 38px;
    width: 100%;
    border: 1px solid #EFF0F4;
    padding: 0 20px;
    background: #EFF0F4;
    border-radius: 5px;
}

.smsForm .formIt .errorMsg{
    position: absolute;
    left: 0;
    top: 100%;
    line-height: 20px;
    width: 100%;
    color: #FF4A4A;
    font-size: 12px;
    display: none;
}
.smsForm .formIt.invalid .p_inp,
.smsForm .formIt.invalid .multSelect{
    border-color:#FF4A4A;
}
.smsForm .formIt.invalid .errorMsg{
    display: block;
}
.smsForm .aggree{
    position: relative;
    padding-left: 20px;
}
.smsForm .aggree label{
    color: #999999;
    font-weight: normal;
}
.smsForm .aggree input{
    position: absolute;
    left: 0;
    top: 5px;
}
.smsForm .noAggree label{
    color: #FF4A4A;
}

.smsForm .formIt .p_sub{
    line-height: 40px;
    display: block;
    color: #fff;
    background: var(--smt-color);
    text-align: center;
    border-radius: 6px;
}
.smsForm .formIt .p_sub .icon{
    width: 20px;
    height: 20px;
    margin-right: 8px;
    margin-top: -5px;
}
.smsForm .formIt .p_radio,
.smsForm .formIt .p_checkbox{
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
}

.smsForm .formIt .p_radioItem{
    margin-right: 20px;
}
.smsForm .formIt .p_radioItem label{
    margin: 0;
}






.sm_msg .msgcon *{
    margin: 0;
    max-width: 100%;
}
.sm_msg .msgcon ul,
.sm_msg .msgcon ol{
    margin-left: 15px!important;
}
.sm_msg .msgcon ol{
    list-style:decimal;
}
.sm_msg .msgcon ul{
    list-style:disc;
}
.sm_msg .msgcon ul li,
.sm_msg .msgcon ol li{
    list-style: inherit;
}
.sm_msg .msgknowledge .markCon > *{
    padding: 0;
    margin-bottom: 10px;
    font-size: 12px;
}
.sm_msg .msgknowledge .markCon a{
    color:#3989FF
}




/*手机号*/
.smartService .msgform .p_mobilegroup{
    display: flex;
}
.smartService .msgform .p_mobilePre{
    flex: 0 0 30%;
}
.smartService .msgform .p_mobilegroup > .p_inp{
    flex: 0 0 70%;
}
.smartService .msgform .p_phoneCode{
    position: relative;
    height:100%;
    width: 100%;
    padding-right: 10px;
}
.smartService .msgform .p_currentCode{
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    padding: 0 5px 0 10px;
    height: 100%;
    align-items: center;
    border: 1px solid #EFF0F4;
    background: #EFF0F4;
    border-radius: 5px;
}
.smartService .sm_msg .p_currentCode{
    background: #fff;
    border: 0;
    border-radius: 4px;
}
.smartService .msgform .p_currentCode .p_arrow{
    width: 20px;
    height:20px;
}
.smartService .sm_msg .p_currentCode .p_arrow{
    width: 14px;
    height:14px;
    margin-top: -7px;
}
.smartService .msgform .p_codeList{
    display: none;
    position: absolute;
    width: 120px;
    left: 0;
    top: calc(100% + 5px);
    background-color: #fff;
    color: #495057;
    box-shadow: 0 2px 15px 0 #0000001f;
    border-radius: 4px;
    max-height: 192px;
    overflow: auto;
    z-index: 9;
    margin: 0;
    padding: 0;
    margin-left: 0 !important;
    max-width: none;
}
.smartService .msgform .p_codeItem{
    line-height: 32px;
    padding: 0 10px;
    overflow: hidden;
    cursor: pointer;
}
.smartService .msgform .p_codeItem:hover,
.smartService .msgform .p_codeItem.p_active{
    background-color: #f1f5f8;
}
.smartService .msgform .p_enCode{
    float: right;
    color: #ccc;
}
.smartService .msgform .p_imagecodeCon{
    position: relative;
}
.smartService .msgform .p_code_img {
    position: absolute;
    right: 5px;
    top: 1px;
    z-index: 12;
    width: 80px;
    height: 33px;
    cursor: pointer;
    vertical-align: top;
    display: none;
}




@keyframes dot-loader {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.6);
        opacity: 0.7;
    }
}
.sm_msg.sm_reply .dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
}
.sm_msg.sm_reply .dot-loader .dot {
    width: 6px;
    height: 6px;
    background-color: var(--smt-color);
    border-radius: 50%;
    margin: 0 5px;
    animation: dot-loader 1.2s infinite;
    overflow: hidden;
}
.sm_msg.sm_reply .dot-loader .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.sm_msg.sm_reply .dot-loader .dot:nth-child(3) {
    animation-delay: 0.4s;
}
.sm_msg.sm_reply .dot-loader .dot:nth-child(4) {
    animation-delay: 0.6s;
}
.sm_msg.sm_reply .dot-loader .dot:nth-child(5) {
    animation-delay: 0.8s;
}
.sm_msg.sm_reply .dot-loader .dot:nth-child(6) {
    animation-delay: 1s;
}






.smsForm .formIt .multSelect{
    font-size:12px;
    position: relative;
    border: 1px solid #EFF0F4;
    background: #EFF0F4;
    border-radius: 5px;
}
.smsForm .formIt .multSelect .inputWrap{
    width:100%;
    min-height: 40px;
    position: relative;
    cursor: pointer;
    padding: 0 20px 0 10px;
}
.smsForm .formIt .multSelect.is-invalid .inputWrap{
    border-color:#dc3545
}
.smsForm .formIt .multSelect ul{
    margin: 0;
}
.smsForm .formIt .multSelect ul,li{
    list-style: none;
}
.smsForm .formIt .multSelect li{
    display: inline-block;
    background: #fff;
    padding:3px 5px;
    margin: 5px 5px 5px 0;
    border-radius: 5px;
}
.smsForm .formIt .selSigle .multSelect li{
    background: none;
}
.smsForm .formIt .multSelect .multSelect-option{
    width: 100%;
    border-top:0;
    max-height: 200px;
    overflow-y: scroll;
    position: absolute;
    height: 0;
    opacity: 0;
    z-index: 9;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.smsForm .formIt .multSelect .multSelect-option>div{
    line-height:40px;
    cursor: pointer;
    padding: 0 10px;
}
.smsForm .formIt .multSelect .multSelect-option>div.selected{
    color: #409eff;
}
.smsForm .formIt .multSelect .multSelect-option>div:hover{
    color: #409eff;
    background:#f3f6f9
}
.smsForm .formIt .multSelect .fa-close{
    font-style:normal;
    font-size:12px;
    padding:0 5px 0 7px;
}
.smsForm .formIt .multSelect .inputWrap>.fa svg{
    fill:#666;
    width:16px;
    height:16px;
    position: absolute;
    right: 5px;
    top: calc(50% - 8px);
}
.smsForm .formIt .multSelect .inputWrap>.fa-down svg{
    transform:rotate(-90deg)
}
.smsForm .formIt .multSelect .inputWrap>.fa-up svg{
    transform:rotate(90deg)
}
.smsForm .formIt .multSelect .placeholder{
    line-height: 40px;
    padding-left: 10px;
    color: #aaa;
    position: absolute;
    left: 0;
    top: 0;
}
.smsForm .formIt .multSelect .disabled{
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}
